package com.googlecode.smartbinding.framework.events;

import com.googlecode.smartbinding.framework.core.PropertyDescriptor;

import java.util.EventObject;

/**
 * Model changed event shows when the source.
 *
 * @author Iulian Dumitru
 */
public class TargetChangedEvent extends EventObject {

    private static final long serialVersionUID = 1L;

    private PropertyDescriptor descriptor;

    public TargetChangedEvent(PropertyDescriptor descriptor) {
        super(descriptor);
        this.source = descriptor;
    }

    public PropertyDescriptor getSource() {
        return descriptor;
    }

}
